// 一般情况不要动
import { Suspense, useState, useEffect } from 'react';
import { useRoutes, useNavigate } from 'react-router-dom';

import routes from './router/index';



let App = () => {
  let routerView = useRoutes(routes);
  return (
    <>
      <Suspense fallback={<div>loing...</div>}>
      {routerView}
      </Suspense>
    </>
  );
};

export default App;